+opencc (1.1.9+ds1-2) unstable; urgency=medium
+
+ * debian/patches/backport/0006-Fix-build-for-gcc-15-934.patch,
+ debian/patches/backport/0007-Fix-deprecated-declarations-in-C-17.patch:
+ Backport upstream patches to fix FTBFS with GCC 15. (Closes: #1097512)
+
+ -- Boyuan Yang <byang@debian.org> Tue, 09 Sep 2025 08:20:41 -0400
+
opencc (1.1.9+ds1-1) unstable; urgency=medium
* Upload to unstable.
--- /dev/null
+From: Peng Wu <alexepico@gmail.com>
+Date: Thu, 13 Feb 2025 00:15:10 +0800
+Subject: Fix build for gcc 15 (#934)
+
+Co-authored-by: Peng Wu <pwu@redhat.com>
+Bug-Debian: https://bugs.debian.org/1097512
+---
+ src/SerializedValues.hpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/SerializedValues.hpp b/src/SerializedValues.hpp
+index c17210b..f7e5bb2 100644
+--- a/src/SerializedValues.hpp
++++ b/src/SerializedValues.hpp
+@@ -18,6 +18,8 @@
+
+ #pragma once
+
++#include <cstdint>
++
+ #include "Common.hpp"
+ #include "SerializableDict.hpp"
+
--- /dev/null
+From: WhiredPlanck <whiredplanck@outlook.com>
+Date: Sat, 5 Jul 2025 03:57:30 +0800
+Subject: Fix deprecated declarations in C++17
+
+---
+ src/Segments.hpp | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/Segments.hpp b/src/Segments.hpp
+index 2186dfd..57320fe 100644
+--- a/src/Segments.hpp
++++ b/src/Segments.hpp
+@@ -18,6 +18,7 @@
+
+ #pragma once
+
++#include <iterator>
+ #include <sstream>
+
+ #include "Common.hpp"
+@@ -53,8 +54,11 @@ public:
+ managed.push_back(str);
+ }
+
+- class iterator : public std::iterator<std::input_iterator_tag, const char*> {
++ class iterator {
+ public:
++ using iterator_category = std::input_iterator_tag;
++ using value_type = const char*;
++
+ iterator(const Segments* const _segments, size_t _cursor)
+ : segments(_segments), cursor(_cursor) {}
+
0003-no-remote-images-when-reading-docs-on-disk.patch
0004-Use-system-googletest.patch
0005-Disable-build-in-setup.py.patch
+backport/0006-Fix-build-for-gcc-15-934.patch
+backport/0007-Fix-deprecated-declarations-in-C-17.patch